package com.yb.login.center.util;

import com.yb.login.center.vo.LoginVo;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.expression.spel.support.StandardEvaluationContext;

/**
 * Copyright (C), 2022-2022, 姚兵
 * Author: 32210
 * Date: 2022/12/9 16:41
 * FileName: MyTestUtil
 * Description:
 */
public class MyTestUtil {
    public static ExpressionParser parser = new SpelExpressionParser();
    public static void main(String[] args) {
        StandardEvaluationContext evaluationContext = new StandardEvaluationContext();
        LoginVo loginVo = new LoginVo();
        loginVo.setMobile("15502618017");
        evaluationContext.setVariable("#loginVo", loginVo);
//        resultKey = parser.parseExpression(key).getValue(evaluationContext);
    }
}
